<template>
  <div class="monitor-group" v-if="list && list.length">
    <FlvPlayer class="player" v-for="code in list" :key="code" :code="code"></FlvPlayer>
  </div>
</template>

<script>
export default {
  props: {
    // 监控code数组
    list: {
      type: Array,
      default: []
    }
  }
};
</script>

<style lang="scss" scoped>
.monitor-group {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #999999;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  .player {
    width: 200px;
    height: 150px;
  }
}
</style>
